package com.example.chatchatbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chatchatbackend.entity.dto.send.SendComments;
import com.example.chatchatbackend.entity.vo.request.SendCommentsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 丁真
 * @since 2024-10-28 05:03:47
 */
@Mapper
public interface SendCommentsMapper extends BaseMapper<SendComments> {

    void insertList(List<SendComments> sendSendCommentsList);

    IPage<SendComments> selectAll(Page<SendComments> page, Object o);

    List<SendCommentsVO> getAll();

    List<SendComments> findSendCommentsList(@Param("isSend")String isSend, @Param("currentTime") LocalDateTime currentTime);

    void updateSendComments(SendComments sendComments);
}
